package com.nidu.demo.mail.convertor;

import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.mail.dto.MailAccountListQry;
import com.nidu.demo.mail.dto.MailAccountPageQry;
import com.nidu.demo.mail.dto.MailAccountQry;
import com.nidu.demo.mail.model.MailAccountCriteria;
import org.mapstruct.Mapper;

@Mapper(config = MapStructConfig.class)
public interface MailAccountCriteriaConvertor {

    MailAccountCriteria toDataObject(MailAccountQry pageQry);

    MailAccountCriteria toDataObject(MailAccountListQry pageQry);

    MailAccountCriteria toDataObject(MailAccountPageQry pageQry);

}
